﻿using DevExpress.DataAccess.Native.Json;

namespace YAPACS.RisServer.Interface
{
    /// <summary>
    /// 返回结果总格式
    /// </summary>
    [Serializable]
    public class ResultDto<T>
    {

        /// <summary>
        /// 操作状态码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Succee { get; set; }


        /// <summary>
        /// 异常信息
        /// </summary>
        public string Error { get; set; }

        
        /// <summary>
        /// 操作信息
        /// </summary>
        public string Info { get; set; }


        /// <summary>
        /// 返回数据
        /// </summary>
        public T Data { get; set; }


        /// <summary>
        /// 工作流返回的UI Json字符串
        /// </summary>
        public string View { get; set; }


        /// <summary>
        /// 视图标题
        /// </summary>
        public string ViewTitle { get; set; }


        /// <summary>
        /// 视图宽度
        /// </summary>
        public int ViewWidth { get; set; }


        /// <summary>
        /// 视图高度
        /// </summary>
        public int ViewHeight { get; set; }


        /// <summary>
        /// 下一步操作ID
        /// </summary>
        public string NextAction { get; set; }


        /// <summary>
        /// 跳过操作ID
        /// </summary>
        public string SkipAction { get; set; }


        /// <summary>
        /// 跳转到
        /// </summary>
        public string NavigativeTo { get; set; }


        /// <summary>
        /// amis-form name
        /// </summary>
        public string ViewForm { get; set; }


        /// <summary>
        /// '跳过'按钮名称
        /// </summary>
        public string SkipActionCaption { get; set; }


        /// <summary>
        /// '下一步'按钮的名称
        /// </summary>
        public string NextActionCaption { get; set; }
    }

    public class ResultDto { }
}
